package com.example.webchar.webchar.utils;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: boot
 * @description
 * @author: YouName
 * @create: 2021-03-24 11:56
 **/
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}


